package com.app.game.other;

import java.io.Serializable;

import com.app.client.ServerHandler;
import com.app.factories.BetFactory;
import com.app.game.bet.Bet;
import com.app.game.chat.Message;
import com.app.observers.PlayerObserver;
import com.app.observers.ServerObserver;

public interface Player extends Serializable,ServerObserver{
	public Bet makeBet(BetFactory factory,int type,Credit credit);
	public void cancelBet(Bet bet);
	public void finishRound();
	public void ready();
	public void sendMessage(Message msg);
	public void setServerHandler(ServerHandler handler);
        public ServerHandler getServerHandler();
	public void setId(Integer id);
	public Integer getId();
	public Credit getCredits();
	public void setCredits(Credit credits);
        public String getName();
	public void setName(String name);
	public void registerPlayerObserver(PlayerObserver ob);
	public void removePlayerObserver(PlayerObserver ob);
	public void notifyObservers();
	
}
